<template>
  <BasicModal v-bind="$attrs" destroyOnClose title="日志记录" :helpMessage="['日志记录']" width="60%" :footer="null" @register="registerModal" :destroyOnClose="true">
    <OptLogIndex ref="optLogIndex"></OptLogIndex>
  </BasicModal>
</template>
<script lang="ts" setup>
import { getCurrentInstance, ref } from 'vue';
import { BasicModal, useModalInner } from '@apps/antd-admin/src/components/modal';
import OptLogIndex from './index.vue';

const ctx: any = getCurrentInstance();
const [registerModal, { setModalProps }] = useModalInner(async (data) => {
  let record = data.data;
  ctx.refs['optLogIndex'].setSearchInfoProps(record.busType, record.businessId);
});
</script>
